package B.w.OOday05;
/**枚举的演示*/
public class EnumDemo {
    public static void main(String[] args) {


        Season s=Season.AUTUMN;
        System.out.println((s.getSeasonName()+","+s.getSeasonDesc()));
        switch (s){
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDesc()+"放风筝去喽");
                break;
            case SPRING:
                System.out.println("天气"+s.getSeasonDesc()+"放风筝去喽");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDesc()+"放风筝去喽");
                break;
            case WINTER:
                System.out.println("天气"+s.getSeasonDesc()+"放风筝去喽");
                break;
        }
    }
}
